package mastermind;

public class Examination {
    
    private static final int TRIES = 500;
    
    public static void main(String[] args) {
        int generations_sum = 0;

        for (int i = 0; i < TRIES; i++) {
            Mastermind game = new Mastermind(Mastermind.SEQUENCE_LENGTH, Mastermind.COLORS);
            game.solve();
            generations_sum += game.getGeneration();
        }

        System.out.println("Ilość prób: " + TRIES + "; Średnia ilość generacji: " + String.format("%.3g", (double) generations_sum / TRIES));
    }
    
}
